package com.ai.dao.edu.cms.device;

import java.util.List;
import java.util.Map;

import com.ai.model.edu.user.UserOrgInfo;
import com.ai.model.edu.user.dto.UserOrgInfoDTO;
import com.ai.model.edu.user.vo.UserOrgInfoVO;

public interface UserOrgInfoMapper {

	List<UserOrgInfoVO> findUserOrgInfoListByUserIds(Map<String, Object> map);

	void batchInsertUserOrgInfo(List<UserOrgInfo> list);

	void batchUpdateUserOrgInfo(List<UserOrgInfo> list);

	List<UserOrgInfoVO> fetchMessagesTouchUsersByOrgs(UserOrgInfoDTO dto);

	int countMessageTouchUsersByOrgs(UserOrgInfoDTO dto);
	
	/**Description ： 根据手机号批量修改用户的 is_send 信息
	 *               将 is_send 字段置为 1
	 * <br>
     * 
     * WUCHEN
     * @param phones
     * @since
     * 
     */
    void batchUpdateUserOrgInfoIsSendByContactPhones(List<String> phones);

	List<UserOrgInfoVO> findUserOrgInfoListByUserIdsTmp(List<Long> tmpUserList);

}
